﻿using System.Web;

namespace GP.Logic
{
    public class PageData
    {
        public static int GetCitizenId()
        {
            int id;

            var s = HttpContext.Current.Request["CitizenId"];
            if(string.IsNullOrWhiteSpace(s))
                return 0;

            int.TryParse(s, out id);
            return id;
        }
        public static string GetDoctorUsername()
        {
            return HttpContext.Current.User.Identity.Name;
        }

    }
}